//
//  AppDelegate+AppService.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/9/28.
//  Copyright © 2020 吴欧. All rights reserved.
//

#import "AppDelegate.h"

NS_ASSUME_NONNULL_BEGIN


#define ReplaceRootViewController(vc) [[AppDelegate shareAppDelegate] replaceRootViewController:vc]


/**
包含第三方 和 应用内业务的实现，减轻入口代码压力
*/
@interface AppDelegate (AppService)

//初始化服务
-(void)initService;

//初始化 window
-(void)initWindow;

//初始化 UMeng
-(void)initUMeng;

//初始化用户系统
-(void)initUserManager;

//监听网络状态
- (void)monitorNetworkStatus;

//初始化网络配置
-(void)NetWorkConfig;

// 初始化键盘管理
- (void)setupKeyboardManager;

-(void)removeLaunchScreenCacheIfNeeded;

/**初始化百度地图*/
- (void)setupBaiduMap;

//单例
+ (AppDelegate *)shareAppDelegate;

/**
 当前顶层控制器
 */
-(UIViewController*) getCurrentVC;

-(UIViewController*) getCurrentUIVC;

@end

NS_ASSUME_NONNULL_END
